﻿<%@ Page Title="Kids Church Report Details" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ReportDetails.aspx.cs" Inherits="MyLocalChurch.KidsChurch.Reports.ReportDetails" %>
<%@ Register TagPrefix="uc" TagName="DatePicker" Src="~/WebControls/DatePicker.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <ajaxToolkit:ToolkitScriptManager ID="toolkitScriptManager" runat="server">
    </ajaxToolkit:ToolkitScriptManager>
    <h2>Kids Church Report Details</h2>
    <table>
        <tr>
            <td>Category:</td>
            <td><asp:DropDownList ID="ddlCategories" runat="server"/></td>
        </tr>
        <tr>
            <td>Church Service:</td>
            <td><asp:DropDownList ID="ddlChurchServices" runat="server"/></td>
        </tr>
        <tr>
            <td>Start Date:</td>
            <td>
                <uc:DatePicker ID="dpStartDate" runat="server" Required="True"
                    OnSelectedDateChanged="dpStartDate_SelectedDateChanged"/>
            </td>
        </tr>
        <tr>
            <td>End Date:</td>
            <td>
                <uc:DatePicker ID="dpEndDate" runat="server" Required="True"
                    OnSelectedDateChanged="dpEndDate_SelectedDateChanged"/>
            </td>
        </tr>
        <tr>
            <td>Checked Out Only:</td>
            <td><asp:CheckBox ID="chkCheckedOutOnly" runat="server" Checked="False"/></td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btnShowDetails" runat="server" Text="Show Details"
                    OnClick="btnShowDetails_Click"/>
            </td>
            <td></td>
        </tr>
    </table>
    <p>
        Total Rows: <asp:Label ID="lblTotalRows" runat="server"></asp:Label>
    </p>
    <table>
        <thead>
            <tr>
                <th>Service</th>
                <th>Category</th>
                <th>Name</th>
                <th>Check In Time</th>
                <th>Check Out Time</th>
            </tr>
        </thead>
        <tbody>
            <asp:Repeater ID="rptReportDetails" runat="server">
                <ItemTemplate>
                    <tr>
                        <td><%# DataBinder.Eval(Container.DataItem, "ChurchService") %> </td>
                        <td><%# DataBinder.Eval(Container.DataItem, "Category") %> </td>
                        <td><%# DataBinder.Eval(Container.DataItem, "Name") %> </td>
                        <td><%# DataBinder.Eval(Container.DataItem, "CheckInTime") %> </td>
                        <td><%# DataBinder.Eval(Container.DataItem, "CheckOutTime") %> </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </tbody>
    </table>
</asp:Content>
